
<#include "header.ftl">
  <!-- 内容区域 -->
<div class="tpl-content-wrapper">
 <div class="container-fluid am-cf">
                <div class="row">
                     <div class="am-u-sm-12 am-u-md-12 am-u-lg-9">
                        <ol class="am-breadcrumb">
						  <li><a href="${Domain}my" class="am-icon-home">首页</a></li>
						  <li ><a href="${Domain}my/patient/list">患者</a></li>
						  <li class="am-active">${patient.name}联系人</li>						  
						</ol>
                    </div>
                  	<#include "../common/return.ftl">
                </div>
  </div>
       <div class="row-content am-cf">
                <div class="row">
                <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
                        <div class="widget am-cf">
                            <div class="widget-head am-cf">
                                <div class="widget-title  am-fl">
                                   	患者:${patient.name}
                                                                                           性别：<#switch patient.gender>
										           <#case 0> 未知 <#break>
										           <#case 1>男<#break>
										           <#case 2>女<#break>
										           <#default>未知
										 </#switch>
									 年龄：${patient.Age()}
									 身份证：${patient.SimpleNo()}
								</div>
								<div class="widget-function am-fr">
                                    <a href="${Domain}my/patient/linkmanadd/${patient.id}?url=${url}" class="am-icon-plus"    data-am-popover="{theme: 'success sm',content: '新增联系人', trigger: 'hover focus'}"></a>
                                </div>
                            </div>
                            <div class="widget-body  am-fr">

                                <div class="am-u-sm-12 am-u-md-9 am-u-lg-9">
                                                                                      
                                </div>
                                
                                <div class="am-u-sm-12 am-u-md-3 am-u-lg-3">
                                	
                                </div>

                                <div class="am-u-sm-12">
                                
                                
                                
                                <div class="am-scrollable-horizontal">
                                
                                    <table width="100%" class="<#include "../common/table-class.ftl">"  >
                                        <thead>
                                            <tr>
                                                <th width="80px">编号</th>
                                                <th>名称</th>
                                                <th>电话</th>
                                                <th>关系</th>
                                                <th>有效</th>
                                                <th>默认</th>
                                              <th width="120px">操作</th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                        <#list list as item>
                                            <tr >
                                                 <td>${item.id}</td>
                                                <td>${item.name}</td> 
                                                <td>${item.tel}</td>  
                                                <td>
                                                <#switch item.relation>
										           <#case 0> <span class="am-text-danger">自己</span> <#break>
										           <#case 1> <span class="am-btn-primary">夫妻</span><#break>
										           <#case 2> <span class="am-btn-warning">子女</span><#break>
										           <#case 3> <span class="am-btn-secondary">父母</span><#break>
										           <#case 4> <span class="am-btn-success">亲人</span><#break>
										           <#case 5> <span class="am-btn-default">朋友</span><#break>
										           <#default>未知
										        	</#switch>
												</td>  
                                                <td>
                                                 <#switch item.isuse>
										           <#case 1> <span class="am-text-success">是</span> <#break>
										           <#case 0> <span class="am-text-danger">否</span><#break>
										           <#default>未知
										        </#switch>
												</td>  
                                                <td>
                                                <#switch item.isdefault>
										           <#case 1> <span class="am-text-danger">是</span> <#break>
										           <#case 0> <span class="am-text-success">否</span><#break>
										           <#default>未知
										        </#switch>
												</td>                                         
                                                <td>
                                              
                                                    <div class="tpl-table-black-operation">
                                                        <a href="${Domain}my/patient/linkmanupdate/${item.id}?url=${url}">
                                                            <i class="am-icon-pencil"></i> 编辑
                                                        </a>
                                                    </div>
                                                  
                                                </td>
                                            </tr>
                                            </#list>
                                        </tbody>
                                    </table>
                                    </div>
                                </div>
                              
                               
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        
 </div>     
 
    
<#include "footer.ftl">